const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 9876,
    open: true,
    proxy: {
      '/api': {
        target: 'http://localhost:8989/vue_manager_Web_exploded/',
        // 允许跨域
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': ''
          //  '^/api': '/' 效果完全一样
        }
      }
    }
  }
})
